﻿using MyHome.Server.PluginBase;
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace TestInputPlugin
{
    /// <summary>
    /// A plugin used for testing purposes that can generate any kind of data.
    /// </summary>
    public class TestInputPlugin : InputPlugin<object>
    {

        protected override void OnStart()
        {
        }

        protected override void OnStop()
        {
        }

        /// <summary>
        /// Sends the given data into the system.
        /// </summary>
        /// <param name="value">The value to send.</param>
        public void SendValue(object value)
        {
            Debug.WriteLine("TestInput sending " + value);
            OnNewValue(value);
        }
    }
}
